package com.china.juju.entity;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_goods"
    ,catalog="zutuan_prot"
)
public class JujuGoods  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuGoods";
	public static final String TABLE_NAME="juju_goods";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_name = "name"; 
	public static final String P_typeid = "typeid"; 
	public static final String P_exchangeType = "exchangeType"; 
	public static final String P_tittle = "tittle"; 
	public static final String P_img = "img"; 
	public static final String P_applyScope = "applyScope"; 
	public static final String P_description = "description"; 
	public static final String P_originalPrice = "originalPrice"; 
	public static final String P_presentPrice = "presentPrice"; 
	public static final String P_isShelf = "isShelf"; 
	public static final String P_isPriority = "isPriority"; 
	public static final String P_stock = "stock"; 
	public static final String P_shelfDate = "shelfDate"; 
	public static final String P_offshelfDate = "offshelfDate"; 
	public static final String P_addDate = "addDate"; 
	public static final String P_addUserid = "addUserid"; 

     private String id;
     private String name;
     private String typeid;
     private Integer exchangeType;
     private String tittle;
     private String img;
     private String applyScope;
     private String description;
     private Integer originalPrice;
     private Integer presentPrice;
     private Integer isShelf;
     private Integer isPriority;
     private Integer stock;
     private Date shelfDate;
     private Date offshelfDate;
     private Date addDate;
     private String addUserid;

    public JujuGoods() {
    }
	
    public JujuGoods(String id) {
        this.id = id;
    }
    public JujuGoods(String id, String name, String typeid, Integer exchangeType, String tittle, String img, String applyScope, String description, Integer originalPrice, Integer presentPrice, Integer isShelf, Integer isPriority, Integer stock, Date shelfDate, Date offshelfDate, Date addDate, String addUserid) {
        this.id = id;
        this.name = name;
        this.typeid = typeid;
        this.exchangeType = exchangeType;
        this.tittle = tittle;
        this.img = img;
        this.applyScope = applyScope;
        this.description = description;
        this.originalPrice = originalPrice;
        this.presentPrice = presentPrice;
        this.isShelf = isShelf;
        this.isPriority = isPriority;
        this.stock = stock;
        this.shelfDate = shelfDate;
        this.offshelfDate = offshelfDate;
        this.addDate = addDate;
        this.addUserid = addUserid;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="id", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="name", length=200)
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="typeid", length=36)
    public String getTypeid() {
        return this.typeid;
    }
    
    public void setTypeid(String typeid) {
        this.typeid = typeid;
    }
    
    @Column(name="exchange_type")
    public Integer getExchangeType() {
        return this.exchangeType;
    }
    
    public void setExchangeType(Integer exchangeType) {
        this.exchangeType = exchangeType;
    }
    
    @Column(name="tittle", length=200)
    public String getTittle() {
        return this.tittle;
    }
    
    public void setTittle(String tittle) {
        this.tittle = tittle;
    }
    
    @Column(name="img", length=1000)
    public String getImg() {
        return this.img;
    }
    
    public void setImg(String img) {
        this.img = img;
    }
    
    @Column(name="apply_scope", length=500)
    public String getApplyScope() {
        return this.applyScope;
    }
    
    public void setApplyScope(String applyScope) {
        this.applyScope = applyScope;
    }
    
    @Column(name="description", length=1000)
    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    @Column(name="original_price")
    public Integer getOriginalPrice() {
        return this.originalPrice;
    }
    
    public void setOriginalPrice(Integer originalPrice) {
        this.originalPrice = originalPrice;
    }
    
    @Column(name="present_price")
    public Integer getPresentPrice() {
        return this.presentPrice;
    }
    
    public void setPresentPrice(Integer presentPrice) {
        this.presentPrice = presentPrice;
    }
    
    @Column(name="is_shelf")
    public Integer getIsShelf() {
        return this.isShelf;
    }
    
    public void setIsShelf(Integer isShelf) {
        this.isShelf = isShelf;
    }
    
    @Column(name="is_priority")
    public Integer getIsPriority() {
        return this.isPriority;
    }
    
    public void setIsPriority(Integer isPriority) {
        this.isPriority = isPriority;
    }
    
    @Column(name="stock")
    public Integer getStock() {
        return this.stock;
    }
    
    public void setStock(Integer stock) {
        this.stock = stock;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="shelf_date", length=19)
    public Date getShelfDate() {
        return this.shelfDate;
    }
    
    public void setShelfDate(Date shelfDate) {
        this.shelfDate = shelfDate;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="offshelf_date", length=19)
    public Date getOffshelfDate() {
        return this.offshelfDate;
    }
    
    public void setOffshelfDate(Date offshelfDate) {
        this.offshelfDate = offshelfDate;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="add_date", length=19)
    public Date getAddDate() {
        return this.addDate;
    }
    
    public void setAddDate(Date addDate) {
        this.addDate = addDate;
    }
    
    @Column(name="add_userid", length=36)
    public String getAddUserid() {
        return this.addUserid;
    }
    
    public void setAddUserid(String addUserid) {
        this.addUserid = addUserid;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


